package com.cs.contract.service.impl;

import com.cs.contract.service.CsFrameManagementService;
import com.cs.contract.domain.CsFrameManagement;
import com.cs.contract.mapper.CsFrameManagementMapper;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.service.impl
 * @Project：RuoYi-Cloud
 * @name：CsFrameManagementServiceImpl
 * @Date：2024/11/28 9:31
 * @Filename：CsFrameManagementServiceImpl
 */
@Service
public class CsFrameManagementServiceImpl implements CsFrameManagementService {
    private final CsFrameManagementMapper csFrameManagementMapper;

    public CsFrameManagementServiceImpl(CsFrameManagementMapper csFrameManagementMapper) {
        this.csFrameManagementMapper = csFrameManagementMapper;
    }

    @Override
    public Integer deleteCsFrameManagementByOid(Integer oid) {
        return csFrameManagementMapper.deleteCsFrameManagementByOid(oid);
    }

    @Override
    public List<CsFrameManagement> listCsFrameManagement(CsFrameManagement csFrameManagement) {
        return csFrameManagementMapper.listCsFrameManagement(csFrameManagement);
    }

    @Override
    public Integer updateXyCancel(Integer oid) {
        return csFrameManagementMapper.updateXyCancel(oid);
    }

    @Override
    public Integer updateCsFrameManagement(CsFrameManagement csFrameManagement) {
        return csFrameManagementMapper.updateCsFrameManagement(csFrameManagement);
    }

    @Override
    public Integer insertCsFrameManagement(CsFrameManagement csFrameManagement) {
        csFrameManagement.setCreateTime(DateUtils.getNowDate());
        return csFrameManagementMapper.insertCsFrameManagement(csFrameManagement);
    }

    @Override
    public CsFrameManagement getCsFrameManagementByOid(Integer oid) {
        return csFrameManagementMapper.getCsFrameManagementByOid(oid);
    }
}
